#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ(2.59)
AC_INIT(simplecpp-test, 1.0, walter.fan@gmail.com)

#added by walter
AM_INIT_AUTOMAKE([-Wall])
# disable shared library
AC_DISABLE_SHARED
AC_PROG_LIBTOOL

AC_CONFIG_SRCDIR([.])
AC_CONFIG_HEADER([config.h])

# Checks for programs.
AC_PROG_CXX
AC_PROG_CC

# Checks for libraries.

# Checks for header files.
AC_HEADER_STDC
AC_HEADER_SYS_WAIT
AC_CHECK_HEADERS([arpa/inet.h fcntl.h limits.h netdb.h netinet/in.h stdlib.h string.h sys/socket.h sys/time.h unistd.h])

# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
AC_C_CONST
AC_TYPE_SIZE_T

# Checks for library functions.
AC_FUNC_MALLOC
AC_FUNC_MMAP
AC_CHECK_FUNCS([bzero munmap socket])

#added by walter
AC_CONFIG_FILES([Makefile])

AC_OUTPUT
